use metac_name for retrieving metaculus api tokens#252
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the reusable GitHub Actions bot launcher workflow to support looking up Metaculus API tokens by a separate Metaculus account name (metac_name) rather than by the internal bot_name, and wires this through for the uniform-probability bot in the AIB tournament workflow.
Changes:
- Add optional
metac_nameinput torun-bot-launcherand use it as the key when selecting a token fromMETACULUS_TOKENS. - Update the AIB tournament workflow to pass
metac_namefor the uniform-probability bot that uses the token-map secret.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/run-bot-launcher.yaml | Adds metac_name input and switches token-map lookup key from bot_name to metac_name. |
| .github/workflows/run-bot-aib-tournament.yaml | Passes metac_name for the uniform-probability bot invocation of the launcher workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
125
to
129
| else | ||
| TOKEN=$(echo "$METACULUS_TOKENS" | jq -r --arg key "$BOT_NAME" '.[$key] // empty') | ||
| TOKEN=$(echo "$METACULUS_TOKENS" | jq -r --arg key "$METAC_NAME" '.[$key] // empty') | ||
| if [ -z "$TOKEN" ]; then | ||
| echo "ERROR: No token found for $BOT_NAME in METACULUS_TOKENS" >&2 | ||
| echo "ERROR: No token found for $METAC_NAME in METACULUS_TOKENS" >&2 | ||
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update runner to read metaculus token api keys from metac names instead of bot names
contains updates that were previously buried in #246